import request from "@/utils/request";
export function login(data) {
  return request({
    url: "/sys/login",
    method: "post",
    data,
  });
}

export function getInfo() {
  return request({
    url: "/sys/profile",
    method: "post",
  });
}

export function logout() {
  return request({
    url: "/vue-admin-template/user/logout",
    method: "post",
  });
}

export function getDetailInfo(id) {
  // 参数ID表示当前登录系统的用户id
  return request({
    method: "get",
    url: "/sys/user/" + id,
  });
}
